package com.blog.backend.mapper;


import com.blog.backend.domain.BlogAlbum;
import com.blog.backend.req.PageAlbumReq;
import com.blog.backend.resp.BlogAlbumResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogAlbumMapper {
    int deleteByPrimaryKey(String albumId);

    int insert(BlogAlbum record);

    int insertSelective(BlogAlbum record);

    BlogAlbum selectByPrimaryKey(String albumId);

    int updateByPrimaryKeySelective(BlogAlbum record);

    int updateByPrimaryKeyWithBLOBs(BlogAlbum record);

    int updateByPrimaryKey(BlogAlbum record);

    BlogAlbum selectByAlbumName(String albumName);

    List<BlogAlbumResp> selectPageAlbum(PageAlbumReq req);

    void updateStatus(String albumId);

    List<BlogAlbumResp> getIndexAlbums();

    BlogAlbumResp selectPhotosByType(@Param("type") String type);

    List<BlogAlbumResp> selectPageAlbum1(PageAlbumReq req);
}